package twoD.IsoPfem;

import java.util.ArrayList;

public class ElasticStructure extends Structure {

	private ArrayList<IElement> elements_;

	public ElasticStructure(Mesh M) {
		super(M);
		elements_ = new ArrayList<IElement>();
	}

	public IElement addElement(IElement e) {
		elements_.add(e);
		return e;
	}

	public int getNumberOfElements() {
		return elements_.size();
	}

	@Override
	public IElement getElements(int i) {
		return elements_.get(i);
	}

	public void solveLinearStaticEquilibrium() {
		Iterate(1);
	}

	public void solveStaticEquilibrium() {
		Iterate();
	}

	@Override
	public void solveStaticEquilibrium(double lambda) {
		Iterate(lambda);
	}

	@Override
	public void updateGlobalState() {
		// do nothing
	}

	@Override
	public void updateInternalState() {
		// do nothing
	}

}
